class prepare {
	double x,y,z;
	public prepare (double x,double y,double z) {
		this.x = x;
		this.y = y;
		this.z = z;
		}
	public double getDistance(prepare origin) {
		return Math.sqrt((x-origin.x)*(x-origin.x)+(y-origin.y)*(y-origin.y)
				+(z-origin.z)*(z-origin.z));
	}
}
class Point{
	public static void main(String[] args) {
		prepare origin = new prepare(12.3,45.6,78.9);
		prepare dest = new prepare(98.7,65.4,32.1);
		System.out.println(origin.getDistance(dest));
	}
}